{% extends 'layout.html' %}

{% block body %}
    <h1>上传图片</h1>
<form method="post" action="{{ url_for('image.upload') }}" enctype="multipart/form-data">
    <div class="form-group">
        <input name="name" type="text" class="form-control" placeholder="文件名称"/>
    </div>
    <div class="form-group">
        <input name="file" type="file" class="form-control" placeholder="选择文件"/>
    </div>
    <div class="form-group">
  <input type="submit" value="上传文件" class="btn btn-primary"/>
    </div>
</form>
{% endblock %}
